package com.cls.yygh.hosp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cls.yygh.hosp.mapper.HospitalSetMapper;
import com.cls.yygh.hosp.service.HospitalSetService;
import com.cls.yygh.model.hosp.HospitalSet;
import org.springframework.stereotype.Service;

/**
 * @program: yygh
 * @description:
 * @author: LH
 * @create: 2021-10-25 17:33
 * @Platform: JDK 1.8.0_301
 **/
@Service
public class HospitalSetServiceImpl extends ServiceImpl<HospitalSetMapper,HospitalSet> implements HospitalSetService {
    @Override
    public String getSignKey(String hoscode) {

        QueryWrapper<HospitalSet> queryWrapper = new QueryWrapper<>();

        queryWrapper.eq("hoscode",hoscode);

        HospitalSet hospitalSet = baseMapper.selectOne(queryWrapper);

        return hospitalSet.getSignKey();
    }
}
